package com.ygqh.baby.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ReturnStatus;
import com.ygqh.baby.po.YgReturnOrderLog;
import com.ygqh.baby.po.YgReturnOrderLogExample;

public interface YgReturnOrderLogMapper {
	int countByExample(YgReturnOrderLogExample example);

	int deleteByExample(YgReturnOrderLogExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgReturnOrderLog record);

	int insertSelective(YgReturnOrderLog record);

	List<YgReturnOrderLog> selectByExample(YgReturnOrderLogExample example);

	YgReturnOrderLog selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgReturnOrderLog record, @Param("example") YgReturnOrderLogExample example);

	int updateByExample(@Param("record") YgReturnOrderLog record, @Param("example") YgReturnOrderLogExample example);

	int updateByPrimaryKeySelective(YgReturnOrderLog record);

	int updateByPrimaryKey(YgReturnOrderLog record);

	int countSuper(@Param("q") String q);

	List<YgReturnOrderLog> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

	int addReturnOrderLogBatch(@Param("returnCodes") List<String> returnCodes, @Param("operation") String operation,
			@Param("returnStatus") ReturnStatus returnStatus, @Param("createBy") String createBy);

	List<YgReturnOrderLog> selectReturnLogByOrderId(@Param("orderId") Long orderId);

	int addBatch(@Param("returnLogs") List<YgReturnOrderLog> returnLogs);

}
